/**
 * 2018年12月18日上午11:34:58
 * @author 谢进财
 */
package com.baihang.project.ds.entity.dbMap;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;

import com.baihang.project.ds.entity.ShouCangEntity;

/**
 * @author 收藏实体映射
 *
 */
@Repository
public class ShouCangRowMapper implements RowMapper<ShouCangEntity>{

	/* (non-Javadoc)
	 * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
	 */
	@Override
	public ShouCangEntity mapRow(ResultSet rs, int rowNum) throws SQLException {
		ShouCangEntity model = new ShouCangEntity();
		model.setD_ID(rs.getInt("D_ID"));
		model.setD_BanName(rs.getString("D_BanName"));
		model.setD_Unit(rs.getString("D_Unit"));
		model.setD_position(rs.getString("d_position"));
		model.setD_RoomNo(rs.getString("D_RoomNo"));
		model.setD_column(rs.getInt("D_column"));
		model.setD_CollectionCount(rs.getInt("D_CollectionCount"));
		model.setD_FloorArea(rs.getDouble("D_FloorArea"));
		model.setD_state(rs.getInt("D_state"));
		model.setD_RoomType(rs.getString("D_RoomType"));
		model.setD_Total(rs.getBigDecimal("D_Total"));		
		return model;
	}

}
